package index

import (
	"encoding/json"
	"net/http"
)

// Home 首页
func Home(w http.ResponseWriter, r *http.Request) {
	params := r.FormValue("params")

	hot := map[string]interface{}{
		"title": "Home",
	}

	data := map[string]interface{}{
		"hot":    hot,
		"params": params,
	}

	json.NewEncoder(w).Encode(map[string]interface{}{
		"code": http.StatusOK,
		"data": data,
	})
}
